<?php
/*
 * Get list of tags
 */
$result = DB::sql("SELECT * FROM tags order by name");
$response = array();
foreach ($result as $row):
	$response[] = $row;
endforeach;

header('HTTP/1.1 201');
header("Content-Type: application/json");
echo json_encode($response);

?>
